import java.util.Scanner;

public class test53 {
    //使用StringBuilder的场景:
    //1.字符串拼接
    //2.字符串反转
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入一个字符串");
        String str = sc.next();
        StringBuilder sb = new StringBuilder(str);
        sb.reverse();
        String str1 = sb.toString();
        if(str.equals(str1)) {
            System.out.println("该字符串是对称字符串");
        }else{
            System.out.println("该字符串不是对称字符串");
        }

    }
}
